<?php
class Portfolio{
	
	var $_explicitType = "nl.fonfolio.model.Portfolio";
	
	function Portfolio(){
		include("portfolio.methodTable.php");
		include("database.php");
	}
	function getPortfolio($userId){
		if (isset($userId)) $WHERE = " WHERE project_user.userId={$userId}";
		$sql = "SELECT * FROM project INNER JOIN project_user ON project.projectId = project_user.projectId $WHERE";
		$query = mysql_query($sql);
		return $query;
	}
}
?>